Creating an Element Parameter
Description
To create a new element parameter in the Model Tree:
Select the position in a Declaration Section where the new element parameter should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
Element parameter and press OK
Enter a name for the new element parameter (if you are creating a multi-dimensional parameter, you can type the indices of each dimension as well)
Press
<Enter>
to create the new element parameter (or press<Esc>
to abort the operation)
The newly created element parameter is not yet ready for use, because you still have to specify the range set via its attributes. To modify the attributes of the newly created element parameter:
Press
<Enter>
or double click on the element parameter.
The most commonly used attributes of an element parameter are discussed below.
INDEX DOMAIN
: TheINDEX DOMAIN
attribute should be specified in order to declare indexed element parameters. Thewizard will display the Set Dependency Tree of your model and allows you to select one or more indices.
RANGE
: TheRANGE
attribute should be used to specify the set in which the element parameter should take its value. Thewizard will display an Identifier Selection Dialog box that helps you select the appropriate set.
DEFAULT
: TheDEFAULT
attribute should be used in order to specify a default value other than the empty element. Note that AIMMS will explicitly store all values that are non-default.DEFINITION
: TheDEFINITION
attribute can (and should) be used to specify the definition of an identifier by means of a global relationship. AIMMS stores the result of a definition and recomputes it only when necessary.
Remark
A common way to declare a scalar element parameter is on the attribute form of the associated set identifier.
How to …
Learn more about